SNTP code for esp32 in arduino 路 Issue #821 路 espressif/arduino

您所在的位置:网站首页 esp32 sntp SNTP code for esp32 in arduino 路 Issue #821 路 espressif/arduino

SNTP code for esp32 in arduino 路 Issue #821 路 espressif/arduino

#SNTP code for esp32 in arduino 路 Issue #821 路 espressif/arduino| 来源: 网络整理| 查看: 265

Hey @beegee-tokyo, good to see you again. getLocalTime() is simply a wrapper around the function calls time() (like now() in arduino timelib) and localtime_r() which updates the struct tm elements. The functions configTime() or configTZTime() init sntp (once in setup) but after that the ntp server is called at hourly intervals. The functionality of timelib is available by the variables in the struct tm structure (tm_hour, tm_min, tm_sec, etc) and by unix-like time function calls (asctime(), ctime(), gmtime(), localtime(), strftime(), etc).



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3